package snake;

import boogie.game.Game;
import boogie.game.sound.Sound;
import boogie.game.sound.SoundManager;

/**
 *
 * @author Boogie
 */
public class SnakeGame extends Game {

    
    private int speed;
    public SnakeGame(int gameSpeed) {
        super(16 * 32, 16 * 32 + 32);
        this.speed = gameSpeed;
        SoundManager.getInstance().addSound("gameover", new Sound(this.getClass().getResource("sounds/gameover.wav")));
        SoundManager.getInstance().addSound("grow", new Sound(this.getClass().getResource("sounds/simple_beep.wav")));
    }

    

    @Override
    public void initStates() {
        PlayState p = new PlayState(this);
        p.setFpsRate(speed);
        PausedState p2 = new PausedState(this);
        this.setCurrentState(p);
        
    }
}
